import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'Login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
  },



  {
    path: '/Home',
    name: 'Home',
    component: () => import('../views/Home.vue'),

    children: [
      {//首页
        path: '/About',
        name: 'About',
        component: () => import('../views/About.vue'),
      },
      {
        path: '/',
        name: 'About',
        component: () => import('../views/About.vue')
      },
      {//合同录入
        path: '/contractEntry',
        name: 'ContractEntry',
        component: () => import('../views/ContractManagement/ContractEntry.vue')
      },
      {//合同列表
        path: '/contractShow',
        name: 'ContractShow',
        component: () => import('../views/ContractManagement/ContractShow.vue')
      },
      {//合同反填
        path: '/contractEcho/:id',
        name: 'ContractEcho',
        component: () => import('../views/ContractManagement/ContractEcho.vue')
      },
      {//合同统计
        path: '/contractrateStatis',
        name: 'ContractrateStatis',
        component: () => import('../views/ContractManagement/ContractrateStatis.vue')
      },
      {//考勤管理/添加申请
        path: '/addRequest',
        name: 'AddRequest',
        component: () => import('../views/AttendanceManagement/AddRequest.vue')
      },
      {//请假申请列表
        path: '/showLeaveRequest',
        name: 'ShowLeaveRequest',
        component: () => import('../views/AttendanceManagement/ShowLeaveRequest.vue')
      },
      {//出差申请列表
        path: '/showEvectionRequest',
        name: 'ShowEvectionRequest',
        component: () => import('../views/AttendanceManagement/ShowEvectionRequest.vue')
      },
      {//外勤申请列表
        path: '/showRequest3',
        name: 'ShowRequest3',
        component: () => import('../views/AttendanceManagement/ShowRequest3.vue')
      },
      {//未打卡申请列表
        path: '/showRequest4',
        name: 'ShowRequest4',
        component: () => import('../views/AttendanceManagement/ShowRequest4.vue')
      },
      {//公司活动申请列表
        path: '/showRequest5',
        name: 'ShowRequest5',
        component: () => import('../views/AttendanceManagement/ShowRequest5.vue')
      },
      {//部门活动申请列表
        path: '/showRequest6',
        name: 'ShowRequest6',
        component: () => import('../views/AttendanceManagement/ShowRequest6.vue')
      },
      {//加班离岗申请列表
        path: '/showRequest7',
        name: 'ShowRequest7',
        component: () => import('../views/AttendanceManagement/ShowRequest7.vue')
      },
      {//节假日设置
        path: '/holiday',
        name: 'Holiday',
        component: () => import('../views/AttendanceManagement/Holiday.vue')
      },
      {//添加申请日期页面
        path: '/getCalendar',
        name: 'GetCalendar',
        component: () => import('../views/AttendanceManagement/GetCalendar.vue')
      },
      {//系统设置:部门管理
        path: '/Department',
        name: 'Department',
        component: () => import('../views/SystemSettings/Institutionalsetting/Department')
      },
      {//系统设置:人员管理
        path: '/Personnel',
        name: 'Personnel',
        component: () => import('../views/SystemSettings/Institutionalsetting/Personnel')
      },

      {//客户管理：客户信息录入
        path: '/CustInfo',
        name: 'CustInfo',
        component: () => import('../views/CustomerManagement/CustInfo.vue')
      },
      {//运营管理：项目立项
        path: '/addProject',
        name: 'AddProject',
        component: () => import('../views/OperateManagement/AddProject.vue')
      },
      {//运营管理：项目信息列表
        path: '/showProject',
        name: 'ShowProject',
        component: () => import('../views/OperateManagement/ShowProject.vue')
      },
      {//运营管理：项目关联合同
        path: '/showConPro',
        name: 'ShowConPro',
        component: () => import('../views/OperateManagement/ShowConPro.vue')
      },
      {//运营管理：项目关联合同反填
        path: '/editConPro',
        name: 'EditConPro',
        component: () => import('../views/OperateManagement/EditConPro.vue')
      },
      {//运营管理：项目统计
        path: '/showCountPro',
        name: 'ShowCountPro',
        component: () => import('../views/OperateManagement/ShowCountPro.vue')
      },
      {//运营管理：项目进度统计
        path: '/showProgress',
        name: 'ShowProgress',
        component: () => import('../views/OperateManagement/ShowProgress.vue')
      },
      {//领导驾驶舱：合同与项目综合统计
        path: '/cockList',
        name: 'CockList',
        component: () => import('../views/LeadingCockpitManagement/CockList.vue')
      },
      {//领导驾驶舱：合同收款综合统计
        path: '/cockListCountInfo',
        name: 'CockListCountInfo',
        component: () => import('../views/LeadingCockpitManagement/CockListCountInfo.vue')
      },
      {//领导驾驶舱：合同收款综合统计收费反填
        path: '/cockListEditInfo',
        name: 'CockListEditInfo',
        component: () => import('../views/LeadingCockpitManagement/CockListEditInfo.vue')
      },
      {//领导驾驶舱：合同综合统计
        path: '/getContract',
        name: 'GetContract',
        component: () => import('../views/LeadingCockpitManagement/GetContract.vue')
      },
      {//领导驾驶舱：项目综合统计
        path: '/getProject',
        name: 'GetProject',
        component: () => import('../views/LeadingCockpitManagement/GetProject.vue')
      },
      {//领导驾驶舱：部门合同额同比(累计)
        path: '/getContractDept',
        name: 'GetContractDept',
        component: () => import('../views/LeadingCockpitManagement/GetContractDept.vue')
      },
      {//领导驾驶舱：部门收费同比统计
        path: '/getContract1',
        name: 'GetContract1',
        component: () => import('../views/LeadingCockpitManagement/GetContract1.vue')
      },
      {//领导驾驶舱：合同收费详情
        path: '/getContract2',
        name: 'GetContract2',
        component: () => import('../views/LeadingCockpitManagement/GetContract2.vue')
      },
      {//领导驾驶舱：项目分类同比
        path: '/getContract3',
        name: 'GetContract3',
        component: () => import('../views/LeadingCockpitManagement/GetContract3.vue')
      },
      {//客户管理：客户信息列表
        path: '/CustInfoList',
        name: 'CustInfoList',
        component: () => import('../views/CustInfoManagementList/CustInfoList.vue')
      },
      {//客户管理：客户信息列表反填
        path: '/CustInfoEdit',
        name: 'CustInfoEdit',
        component: () => import('../views/CustInfoManagementList/CustInfoEdit.vue')
      },
      {//客户管理：客户信息列表编辑
        path: '/CustInfoUpdate',
        name: 'CustInfoUpdate',
        component: () => import('../views/CustInfoManagementList/CustInfoUpdate.vue')
      },
      {//客户管理：联系人信息
        path: '/CustInfoPersonList',
        name: 'CustInfoPersonList',

        component: () => import('../views/CustInfoManagementList/CustInfoPersonList.vue')
      },
      {//客户管理：项目前期信息
        path: '/Custinformation',
        name: 'Custinformation',
        component: () => import('../views/CustInfoManagementList/Custinformation.vue')
      },
      {//客户管理：高级查询
        path: '/CustInfoAdvanced',
        name: 'CustInfoAdvanced',
        component: () => import('../views/CustInfoManagementList/CustInfoAdvanced.vue')
      },
      {//绩效管理：考核任务
        path: '/Assessment',
        name: 'Assessment',
        component: () => import('../views/AssessmentManagement/Assessment.vue')
      },
      {//绩效管理：按钮项目考核
        path: '/AssmentProject',
        name: 'AssmentProject',
        component: () => import('../views/AssessmentManagement/AssmentProject.vue')
      },
      {//系统设置:角色权限管理
        path: '/Role',
        name: 'Role',
        component: () => import('../views/SystemSettings/Institutionalsetting/Role.vue')
      },
      {//系统设置：公告管理
        path: '/Noticee',
        name: 'Noticee',
        component: () => import('../views/SystemSettings/Institutionalsetting/Noticee.vue')
      },
      
      {//绩效管理：项目考核
        path: '/AssProjectA',
        name: 'AssProjectA',
        component: () => import('../views/AssessmentManagement/AssProjectA.vue')
      },
      {//绩效管理：部门内考核
        path: '/AssDep',
        name: 'AssDep',
        component: () => import('../views/AssessmentManagement/AssDep.vue')
      },
      {//绩效管理：部门内考核：人员设置
        path: '/AssPeo',
        name: 'AssPeo',
        component: () => import('../views/AssessmentManagement/AssPeo.vue')
      },
      {//绩效管理：项目考核记录
        path: '/AssProgress',
        name: 'AssProgress',
        component: () => import('../views/AssessmentManagement/AssProgress.vue')
      },
      
        
      {//绩效管理：项目人员进度
        path: '/AssPeogress',
        name: 'AssPeogress',
        component: () => import('../views/AssessmentManagement/AssPeogress.vue')
      }, 
      {//绩效管理：项目奖金调整
        path: '/AssBonu',
        name: 'AssBonu',
        component: () => import('../views/AssessmentManagement/AssBonu.vue')
      }, 
      {//绩效管理：项目奖金调整：查看
        path: '/AssBouSee',
        name: 'AssBouSee',
        component: () => import('../views/AssessmentManagement/AssBouSee.vue')
      },   
      {//绩效管理：部门奖金分配
        path: '/Assbonusshares',
        name: 'Assbonusshares',
        component: () => import('../views/AssessmentManagement/Assbonusshares.vue')
      },       
      {//绩效管理：部门内奖金计算
        path: '/AssBonuscalculation',
        name: 'AssBonuscalculation',
        component: () => import('../views/AssessmentManagement/AssBonuscalculation.vue')
      },  
      {//绩效管理：部门内奖金计算:查看归档
        path: '/AssBonuscalculationS1',
        name: 'AssBonuscalculationS1',
        component: () => import('../views/AssessmentManagement/AssBonuscalculationS1.vue')
      },     
      {//绩效管理：部门奖金分配详情
        path: '/AssmentDep',
        name: 'AssmentDep',
        component: () => import('../views/AssessmentManagement/AssmentDep.vue')
      },  
      {//绩效管理：部门奖金分配详情
        path: '/AssTotalbonus',
        name: 'AssTotalbonus',
        component: () => import('../views/AssessmentManagement/AssTotalbonus.vue')
      },  
      {//绩效管理：部门奖金分配详情
        path: '/AssAnnual',
        name: 'AssAnnual',
        component: () => import('../views/AssessmentManagement/AssAnnual.vue')
      },  
    ]
  },

]

const router = new VueRouter({
  routes
})

export default router
